﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
using WebApiClient.DataAnnotations;

namespace ARchGL.Platform.Jianwei.ViewModels
{
    /// <summary>
    /// 数据实体:添加人员
    /// </summary>
    [Serializable]
    public class AddPersonDto
    {
        /// <summary>
        /// 用户唯一Id
        /// </summary>
        [AliasAs("user_id")]
        [JsonProperty("user_id")]
        public string UserId { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [AliasAs("name")]
        [JsonProperty("name")]
        public string Name { get; set; }
        /// <summary>
        /// 用户工号
        /// </summary>
        [AliasAs("work_sn")]
        [JsonProperty("work_sn")]
        public string WorkSn { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [AliasAs("id_card")]
        [JsonProperty("id_card")]
        public string IdCard { get; set; }
        /// <summary>
        /// 人脸图片
        /// </summary>
        [AliasAs("face_template")]
        [JsonProperty("face_template")]
        public string FaceTemplateBase64 { get; set; }
    }

    /// <summary>
    /// 数据实体:删除人员
    /// </summary>
    [Serializable]
    public class DelPersonDto
    {
        /// <summary>
        /// 用户唯一Id
        /// </summary>
        [AliasAs("user_id")]
        [JsonProperty("user_id")]
        public string UserId { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [AliasAs("type")]
        [JsonProperty("type")]
        public int Type { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        [AliasAs("time")]
        [JsonProperty("time")]
        public DateTime Time { get; set; }

    }
}
